import request from "@/utils/request";

//获取搜索建议的列表
export function getSearchSuggestion(q){

  return request({
    url:'/app/v1_0/suggestion',
    method:'get',
    params:{
      q:q
    }


  })

}

//获取搜索的结果

/**
 * 获取搜索结果
 */
export function getSearch(params) {
  return request({
    method: "GET",
    url: "/app/v1_0/search",
    params
  })
}
